package com.yiren.backstage.currency.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

/**
 * @author lwb
 * @date :2021/12/21 13:52
 * @description:  数据同步
 */
@Entity(nameInDb = "data_syn_state",createInDb = false)
public class DataSynStateEntity {

    /** UUID. */
    private static final long serialVersionUID = 7527581547499560135L;

    /** 同步ID */
    @Id
    @Property(nameInDb = "data_syn_id")
    private String dataSynId;

    /** 同步表名 */
    @Property(nameInDb = "data_syn_table")
    private String dataSynTable;

    /** 0：同步成功 1：未同步 2：未同步（两个url执行：修改和删除同步） 3：正在同步（同步过程中又进行了操作）*/
    @Property(nameInDb = "data_syn_state")
    private int dataSynState;

    /** 查询url */
    @Property(nameInDb = "data_syn_surl")
    private String dataSynSurl;

    /** 修改新增同步url */
    @Property(nameInDb = "data_syn_uurl")
    private String dataSynUurl;

    /** 删除同步URL */
    @Property(nameInDb = "data_syn_durl")
    private String dataSynDurl;

    /** 同步表名类型 1、项目线路 2、项目 3、线路 */
    @Property(nameInDb = "data_table_type")
    private int dataTableType;

    /** 最后更新时间 */
    @Property(nameInDb = "update_time")
    protected String updateTime;

    @Generated(hash = 2113460369)
    public DataSynStateEntity(String dataSynId, String dataSynTable,
            int dataSynState, String dataSynSurl, String dataSynUurl,
            String dataSynDurl, int dataTableType, String updateTime) {
        this.dataSynId = dataSynId;
        this.dataSynTable = dataSynTable;
        this.dataSynState = dataSynState;
        this.dataSynSurl = dataSynSurl;
        this.dataSynUurl = dataSynUurl;
        this.dataSynDurl = dataSynDurl;
        this.dataTableType = dataTableType;
        this.updateTime = updateTime;
    }

    @Generated(hash = 1283535842)
    public DataSynStateEntity() {
    }

    public String getDataSynId() {
        return this.dataSynId;
    }

    public void setDataSynId(String dataSynId) {
        this.dataSynId = dataSynId;
    }

    public String getDataSynTable() {
        return this.dataSynTable;
    }

    public void setDataSynTable(String dataSynTable) {
        this.dataSynTable = dataSynTable;
    }

    public int getDataSynState() {
        return this.dataSynState;
    }

    public void setDataSynState(int dataSynState) {
        this.dataSynState = dataSynState;
    }

    public String getDataSynSurl() {
        return this.dataSynSurl;
    }

    public void setDataSynSurl(String dataSynSurl) {
        this.dataSynSurl = dataSynSurl;
    }

    public String getDataSynUurl() {
        return this.dataSynUurl;
    }

    public void setDataSynUurl(String dataSynUurl) {
        this.dataSynUurl = dataSynUurl;
    }

    public String getDataSynDurl() {
        return this.dataSynDurl;
    }

    public void setDataSynDurl(String dataSynDurl) {
        this.dataSynDurl = dataSynDurl;
    }

    public int getDataTableType() {
        return this.dataTableType;
    }

    public void setDataTableType(int dataTableType) {
        this.dataTableType = dataTableType;
    }

    public String getUpdateTime() {
        return this.updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

}
